package dfbz.文件的遍历;

import java.io.File;

public class demo01 {
    public static void main(String[] args) {
        File file = new File("E:\\东方标准\\JAVASE阶段\\JAVASE-CODE");
//        String[] list = file.list();
//        for (String s : list) {
//            System.out.println(s);
//        }
        File[] files = file.listFiles();
        for (File file1 : files) {
            if(file1.isFile()){
                System.out.println(file1); //输出绝对路径
            }
        }
    }
}
